package com.ruoyi.bantong.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.bantong.mapper.BtPlacecardBlacklistMapper;
import com.ruoyi.bantong.domain.BtPlacecardBlacklist;
import com.ruoyi.bantong.service.IBtPlacecardBlacklistService;

/**
 * 席位玩法黑名单Service业务层处理
 * 
 * @author laohei
 * @date 2021-01-24
 */
@Service
public class BtPlacecardBlacklistServiceImpl implements IBtPlacecardBlacklistService 
{
    @Autowired
    private BtPlacecardBlacklistMapper btPlacecardBlacklistMapper;

    /**
     * 查询席位玩法黑名单
     * 
     * @param pbId 席位玩法黑名单ID
     * @return 席位玩法黑名单
     */
    @Override
    public BtPlacecardBlacklist selectBtPlacecardBlacklistById(Integer pbId)
    {
        return btPlacecardBlacklistMapper.selectBtPlacecardBlacklistById(pbId);
    }

    /**
     * 查询席位玩法黑名单列表
     * 
     * @param btPlacecardBlacklist 席位玩法黑名单
     * @return 席位玩法黑名单
     */
    @Override
    public List<BtPlacecardBlacklist> selectBtPlacecardBlacklistList(BtPlacecardBlacklist btPlacecardBlacklist)
    {
        return btPlacecardBlacklistMapper.selectBtPlacecardBlacklistList(btPlacecardBlacklist);
    }

    /**
     * 新增席位玩法黑名单
     * 
     * @param btPlacecardBlacklist 席位玩法黑名单
     * @return 结果
     */
    @Override
    public int insertBtPlacecardBlacklist(BtPlacecardBlacklist btPlacecardBlacklist)
    {
        btPlacecardBlacklist.setCreateTime(DateUtils.getNowDate());
        return btPlacecardBlacklistMapper.insertBtPlacecardBlacklist(btPlacecardBlacklist);
    }

    /**
     * 修改席位玩法黑名单
     * 
     * @param btPlacecardBlacklist 席位玩法黑名单
     * @return 结果
     */
    @Override
    public int updateBtPlacecardBlacklist(BtPlacecardBlacklist btPlacecardBlacklist)
    {
        btPlacecardBlacklist.setUpdateTime(DateUtils.getNowDate());
        return btPlacecardBlacklistMapper.updateBtPlacecardBlacklist(btPlacecardBlacklist);
    }

    /**
     * 批量删除席位玩法黑名单
     * 
     * @param pbIds 需要删除的席位玩法黑名单ID
     * @return 结果
     */
    @Override
    public int deleteBtPlacecardBlacklistByIds(Integer[] pbIds)
    {
        return btPlacecardBlacklistMapper.deleteBtPlacecardBlacklistByIds(pbIds);
    }

    /**
     * 删除席位玩法黑名单信息
     * 
     * @param pbId 席位玩法黑名单ID
     * @return 结果
     */
    @Override
    public int deleteBtPlacecardBlacklistById(Integer pbId)
    {
        return btPlacecardBlacklistMapper.deleteBtPlacecardBlacklistById(pbId);
    }
}
